package com.atguigu.yygh.hosp.repository;/*
 * @author: XueYouPeng
 * @time: 2023/6/9 19:18
 */

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {


    Department findByHoscodeAndDepcode(String hoscode, String depcode);

    List<Department> findByHoscode(String hoscode);

    List<Department> findByBigcode(String bigCode);
}
